package com.cjx.myself.controller.rce;

import com.cjx.myself.service.rce.RceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;

@RestController
@RequestMapping("/rce/processbuilder")
public class ProcessBuilderController {

    @Autowired
    private RceService rceService;

    @RequestMapping("/rce1")
    public String rce1(String filepath) throws IOException {
        return rceService.rce1(filepath);
    }


    @RequestMapping("/rce2")
    public String rce2(String filepath) throws IOException {
        return rceService.rce2(filepath);
    }

}
